package cn.edu.scau.cmi.linhuanrui.simpleFactoryMethod;

public class MeatFactory {
	public static Meat getMeat(String meatType) {
		Meat meat = null;
		switch(meatType) {
		case "pork":
			meat = new Pork();break;
		case"beef":
			meat = new Beef();break;
		case"chicken":
			meat = new Chicken();break;
		}
		return meat;
	}

}
